// 导出全局 Cesium 对象作为模块
if (!window.Cesium) {
  throw new Error("Cesium 全局对象未找到，请确保已加载 Cesium.js");
}

export default window.Cesium;
/**由于Cesium是通过传统script标签导入的 所以在cesium-extends插件内部一些方法需要通过这里的处理才能正常运行 */
// 按需导出常用类
export const Cartesian3 = window.Cesium.Cartesian3;
export const Color = window.Cesium.Color;
export const Entity = window.Cesium.Entity;
export const ScreenSpaceEventHandler = window.Cesium.ScreenSpaceEventHandler;
export const ScreenSpaceEventType = window.Cesium.ScreenSpaceEventType;
export const Cartesian2 = window.Cesium.Cartesian2;
export const defined = window.Cesium.defined;
export const CallbackProperty = window.Cesium.CallbackProperty;
export const JulianDate = window.Cesium.JulianDate;
export const ClassificationType = window.Cesium.ClassificationType;
export const ArcType = window.Cesium.ArcType;
export const PolygonHierarchy = window.Cesium.PolygonHierarchy;
export const Rectangle = window.Cesium.Rectangle;
export const defaultValue = window.Cesium.defaultValue;
